package com.yuexunit.finance.project.entity.lexicon;

/**
 * @author wenwenlong
 */
public enum WarePickupStateEnum {

	UNKNOWN("待提交"), CANCEL("已取消"), FIRST_APPROVE("初审中"), WAIT_CONTRACT_UPLOAD("合同待上传"), WAIT_CONTRACT_SUBMIT("合同待提交"), WAIT_CLIENT_SIGN("待客户签署"), WAIT_PLATFORM_SIGN("待平台签署"), WAIT_CONFIRM("合同待确认"), CONTRACT_CALLBACK("合同已打回"), PLATFORM_SIGNED("平台已签署"), SECOND_APPROVE("政审中"), WAIT_RELEASE("待放货"), RELEASED("已放货"), REJECT("审批拒绝");
	private final String paramType;

	private WarePickupStateEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/** 0:待提交 1:已取消 2:初审中 3:合同待上传 4:合同待提交 5:待客户签署 6:待平台签署 7:合同待确认 8:合同已打回 9:平台已签署 10:政审中 11:待放货 12:已放货 13:审批拒绝 
	 * 数字转为枚举类型
	 * @return 销售提货状态枚举
	 */
	public static WarePickupStateEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}

	public static void main(String[] args) {
		for (int i = 0; i < WarePickupStateEnum.values().length; i++) {
			System.out.print(i + ":" + WarePickupStateEnum.values()[i].getValue() + " ");
		}
	}
}
